Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Possible perf improvement and logging for team members routing logic #17154

Merged
merged 3 commits into from
Oct 18, 2024

Conversation

hariombalhara
Copy link
Member

@hariombalhara hariombalhara commented Oct 18, 2024

What does this PR do?

Enables Server timings to be able to identify what is slow:
image

What they represent
image

  • Also uses 2 concurrency for running logic per team member and allows us to configure concurrency to experiment through URL.
    Locally I don't see much improvement with a concurrency of 2 though. But the logging would help us in knowing what is the biggest bottle neck

Mandatory Tasks (DO NOT REMOVE)

  • I have self-reviewed the code (A decent size PR without self-review might be rejected).
  • I have updated the developer docs in /docs if this PR makes changes that would require a documentation change. If N/A, write N/A here and check the checkbox.
  • I confirm automated tests are in place that prove my fix is effective or that my feature works.

@keithwillcode keithwillcode added core area: core, team members only enterprise area: enterprise, audit log, organisation, SAML, SSO labels Oct 18, 2024
Comment on lines +31 to +47
type SelectFieldWebhookResponse = string | number | string[] | { label: string; id: string | null };
type FORM_SUBMITTED_WEBHOOK_RESPONSES = Record<
string,
{
/**
* Deprecates `value` prop as it now has both the id(that doesn't change) and the label(that can change but is human friendly)
*/
response: number | string | string[] | SelectFieldWebhookResponse | SelectFieldWebhookResponse[];
/**
* @deprecated Use `response` instead
*/
value: FormResponse[keyof FormResponse]["value"];
}
>;
type TeamMemberWithAttributeOptionValuePerAttribute = Awaited<
ReturnType<typeof getTeamMembersWithAttributeOptionValuePerAttribute>
>[number];
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just moved types above

Copy link

vercel bot commented Oct 18, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
cal ⬜️ Ignored (Inspect) Visit Preview Oct 18, 2024 9:07am
calcom-web-canary ⬜️ Ignored (Inspect) Visit Preview Oct 18, 2024 9:07am

@hariombalhara hariombalhara changed the title chore: increase pagination managed users endpoint (#17147) fix: Possible perf improvement and logging for team members routing logic Oct 18, 2024
@hariombalhara hariombalhara marked this pull request as ready for review October 18, 2024 09:10
@graphite-app graphite-app bot requested a review from a team October 18, 2024 09:10
@dosubot dosubot bot added performance area: performance, page load, slow, slow endpoints, loading screen, unresponsive routing-forms area: routing forms, routing, forms labels Oct 18, 2024
Copy link

graphite-app bot commented Oct 18, 2024

Graphite Automations

"Add consumer team as reviewer" took an action on this PR • (10/18/24)

1 reviewer was added to this PR based on Keith Williams's automation.

"Add ready-for-e2e label" took an action on this PR • (10/18/24)

1 label was added to this PR based on Keith Williams's automation.

@PeerRich PeerRich added the Urgent Created by Linear-GitHub Sync label Oct 18, 2024
Copy link
Member

@alishaz-polymath alishaz-polymath left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@PeerRich PeerRich added this to the v4.7 milestone Oct 18, 2024
@hariombalhara hariombalhara enabled auto-merge (squash) October 18, 2024 09:28
@hariombalhara hariombalhara merged commit 699e08b into main Oct 18, 2024
91 of 101 checks passed
@hariombalhara hariombalhara deleted the perf-attribute-logic branch October 18, 2024 09:44
Copy link
Contributor

E2E results are ready!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core area: core, team members only enterprise area: enterprise, audit log, organisation, SAML, SSO performance area: performance, page load, slow, slow endpoints, loading screen, unresponsive ready-for-e2e routing-forms area: routing forms, routing, forms Urgent Created by Linear-GitHub Sync
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants